package com.netease.pop.sdk.request;

import java.util.HashMap;
import java.util.Map;

import com.netease.pop.sdk.KopRequest;
import com.netease.pop.sdk.response.SkuAddResponse;

/**
 * 添加Sku -- 请求实体
 * 
 * @author hzzhanghui
 * 
 */
public class SkuAddRequest implements KopRequest<SkuAddResponse> {

	@Override
	public String getApiMethodName() {
		return "kaola.item.sku.add";
	}

	@Override
	public Map<String, String> getTextParams() {
		Map<String, String> params = new HashMap<String, String>();
		//params.put("userId", "4661");
		//params.put("businessId", "4661");
		long now = System.currentTimeMillis();
		params.put("item_id", "4665");
		params.put("image_urls", "http://paopao.nosdn.127.net/2a32bfd5-0be7-440c-adeb-194ecce8bb84^1|http://paopao.nosdn.127.net/2a32bfd5-0be7-440c-adeb-194ecce8bb84^2|http://paopao.nosdn.127.net/2a32bfd5-0be7-440c-adeb-194ecce8bb84^2");
		params.put("sku_market_prices", "120|220|320");
		params.put("sku_sale_prices", "100|200|300");
		params.put("sku_barcode", now + "1|" +now+"2|" + now + "3");
		params.put("sku_stock", "100|200|300");
		params.put("sku_property_value", "47642^http://paopao.nosdn.127.net/2a32bfd5-0be7-440c-adeb-194ecce8bb84,47645|47647^http://paopao.nosdn.127.net/2a32bfd5-0be7-440c-adeb-194ecce8bb84,47688|47705^http://paopao.nosdn.127.net/2a32bfd5-0be7-440c-adeb-194ecce8bb84,47706");


		return params;
	}

	@Override
	public Long getTimestamp() {
		return System.currentTimeMillis();
	}

	@Override
	public void setTimestamp(Long timestamp) {
	}

	@Override
	public Class<SkuAddResponse> getResponseClass() {
		return SkuAddResponse.class;
	}

}
